/* Vlcmm plugin */

#include <gtkmm/notebook.h>
#include <gtkmm/stock.h>

#include "open.hh"

#include "components/open_panels.hh"
#include "util/string.hh"

OpenDialog::OpenDialog (int panel, intf_thread_t *_p_intf, Gtk::Window *parent) : p_intf (_p_intf)
{

  if (parent)
    set_transient_for (*parent);

  set_title (_("Open"));

  Gtk::Notebook *notebook = new Gtk::Notebook ();

  notebook->append_page (*Gtk::manage (new FileOpenPanel::FileOpenPanel ()), q2gm (_("&File")), true);
  notebook->append_page (*Gtk::manage (new Gtk::VBox ()), q2gm (_("&Disc")), true);
  notebook->append_page (*Gtk::manage (new Gtk::VBox ()), q2gm (_("&Network")), true);
  notebook->append_page (*Gtk::manage (new Gtk::VBox ()), q2gm (_("Capture &Device")), true);

  //notebook->show_all_children ();
  notebook->set_current_page (panel);
  notebook->show ();

  get_vbox ()->add (*Gtk::manage (notebook));
  
  add_button (Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
  
  show ();

}

OpenDialog::~OpenDialog ()
{}

